#!/bin/sh
apk update
apk --no-cache add openssl iptables ip6tables libqrencode  procps iputils net-tools
arch=$(uname -m)
if [[ $arch = "x86_64" ]]; then
	if [ ! -d "/lib64" ];then
		mkdir /lib64
		cp -f /usr/node/sgerrand.rsa.pub /etc/apk/keys/
		apk add /usr/node/glibc-2.35-r0.apk
		ln -s /usr/glibc-compat/lib/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2
#		ln -s /lib/libz.so.1 /usr/glibc-compat/lib/
	fi
fi
rm -rf /var/cache/apk/* 